Although the actor are with opacity 0, they were reactive, so the if the
user quickly make a click on the grid while animating it can launch an
app accidentally.
To avoid that make the actors non reactive while animating.
for (let index = 0; index < actors.length; index++) {
let actor = actors[index];
actor.opacity = 0;
+ actor.reactive = false;
let delay = index / actors.length * ANIMATION_MAX_DELAY_FOR_ITEM;
let [originalX, originalY] = actor.get_transformed_position();
this._animationDone();
actor.opacity = 255;
+ actor.reactive = true;
actorClone.destroy();
})
});
for (let index = 0; index < actors.length; index++) {
let actor = actors[index];
actor.opacity = 0;
+ actor.reactive = false;
let actorClone = new Clutter.Clone({ source: actor });
Main.uiGroup.add_actor(actorClone);
this._animationDone();
actor.opacity = 255;
+ actor.reactive = true;
actorClone.destroy();
})};
fadeParams = { time: ANIMATION_FADE_IN_TIME_FOR_ITEM,